﻿<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8" />
        <title>@ViewBag.Title</title>
        <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
        <meta name="viewport" content="width=device-width" />
        @Styles.Render("~/Content/css")
        @Scripts.Render("~/bundles/modernizr")
    </head>
    <body>   
        <header>
            <div class="content-wrapper">
                <div class="float-left">
                    <p class="site-title">@Html.ActionLink("BiblioWeb", "Index", "Home")</p>
                </div>
                <div class="float-right">
                    <section id="login">
                        @Html.Partial("_LoginPartial")
                    </section>
                    <nav>
                        <ul id="menu">                       
                            <li>@Html.ActionLink("Inicio", "Index", "Home")</li>       
                            <li>@Html.ActionLink("Materiales", "Index", "Material")</li>             
                            <br />
                            @{
                                if (User.IsInRole("Admins") || User.IsInRole("Clientes")) {
                                    <text>                                                           
                                        <li>@Html.ActionLink("Mis Reservas", "Index", "Reserva")</li>
                                        <li>@Html.ActionLink("Mis Actividades", "Index", "Actividad")</li>
                                        <br />        
                                    </text>   
                                 }                 
                            }
                            @{
                                if (User.IsInRole("Admins")) {
                                    <text>
                                        <li>@Html.ActionLink("Usuarios", "Index", "Usuario")</li>
                                        <li>@Html.ActionLink("Prestamos", "Index", "Prestamo")</li>       
                                        <li>@Html.ActionLink("Ejemplares", "Index", "Ejemplar")</li>                     
                                        <li>@Html.ActionLink("Autores", "Index", "Autor")</li>
                                        <li>@Html.ActionLink("Editoriales", "Index", "Editorial")</li>
                                        <li>@Html.ActionLink("Temas", "Index", "Tema")</li>
                                        <li>@Html.ActionLink("Tipos de material", "Index", "TipoMaterial")</li>   
                                    </text>
                                }
                            }
                  
                        </ul>
                    </nav>
                </div>
            </div>
        </header>
        <div id="body">
            @RenderSection("featured", required: false)
            <section class="content-wrapper main-content clear-fix">
                @RenderBody()
            </section>
        </div>
        <footer>
            <div class="content-wrapper">
                <div class="float-left">
                    <p>&copy; @DateTime.Now.Year - MVC Application</p>
                </div>
            </div>
        </footer>

        @Scripts.Render("~/bundles/jquery")
        @RenderSection("scripts", required: false)
    </body>
</html>
